int a = 1 ;

int main(){
    int result ;
	int N ;
	int M ;
    scanf(N);
	scanf(M);
    if (M >= N) result = M ;
	else result = N;
	a = result + 100 ;
	printf(a);
}
